package com.hydl.power.service;

import com.hydl.power.pojo.PowerConsume;
import com.hydl.power.pojo.PowerDataEnergy;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

/**
 * @author wxb
 * @date 2020/4/23 15:59
 */
public interface PowerDataEnergyService {



    /**
     * 日报
     * @param createTime
     * @param areaId
     * @param projectId
     * @param powerRoomId
     * @return
     */
    List<List<PowerConsume>>  listByDay(String createTime, String areaId, String projectId, String powerRoomId);


    /**
     * 月报
     * @param startTime
     * @param areaId
     * @param projectId
     * @param powerRoomId
     * @return
     */
    List<List<PowerConsume>> listByMonth(String startTime, String areaId, String projectId, String powerRoomId,String endTime) throws ParseException;

    List<List<PowerConsume>> listByMonths(String startTime, String areaId, String projectId, String powerRoomId,String endTime) throws ParseException;


    /**
     * 年报
     * @param startTime
     * @param areaId
     * @param projectId
     * @param powerRoomId
     * @return
     */
    List<List<PowerConsume>> listByYear(String startTime, String areaId, String projectId, String powerRoomId);

    /**
     * 周报
     * @param createTime
     * @param areaId
     * @param projectId
     * @return
     */
    List<List<PowerConsume>> listByWeek(String createTime,String areaId,String projectId,String powerRoomId) throws ParseException;



    /**
     * 电力数据
     * @param begin
     * @param end
     * @param areaId
     * @param projectId
     * @param deviceId
     * @return
     */
    List<PowerDataEnergy> listByPde(Long begin,Long end,String areaId,String projectId,String powerRoomId,String deviceId,Integer flag);

    /**以下做导出Excel用
     */
    List<PowerDataEnergy> listPtByList(Long begin,Long end,String areaId,String projectId,String powerRoomId,String deviceId);
    List<PowerDataEnergy> listDlByList(Long begin,Long end,String areaId,String projectId,String powerRoomId,String deviceId);
    List<PowerDataEnergy> listXiangDyByList(Long begin,Long end,String areaId,String projectId,String powerRoomId,String deviceId);
    List<PowerDataEnergy> listXianDyByList(Long begin,Long end,String areaId,String projectId,String powerRoomId,String deviceId);
    List<PowerDataEnergy> listPfByList(Long begin,Long end,String areaId,String projectId,String powerRoomId,String deviceId);


}
